package com.edu.hibernate;

/**
 * PracticeId entity. @author MyEclipse Persistence Tools
 */

public class PracticeId implements java.io.Serializable {

	// Fields

	private Integer practiceId;
	private String completeBy;

	// Constructors

	/** default constructor */
	public PracticeId() {
	}

	/** full constructor */
	public PracticeId(Integer practiceId, String completeBy) {
		this.practiceId = practiceId;
		this.completeBy = completeBy;
	}

	// Property accessors

	public Integer getPracticeId() {
		return this.practiceId;
	}

	public void setPracticeId(Integer practiceId) {
		this.practiceId = practiceId;
	}

	public String getCompleteBy() {
		return this.completeBy;
	}

	public void setCompleteBy(String completeBy) {
		this.completeBy = completeBy;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PracticeId))
			return false;
		PracticeId castOther = (PracticeId) other;

		return ((this.getPracticeId() == castOther.getPracticeId()) || (this
				.getPracticeId() != null
				&& castOther.getPracticeId() != null && this.getPracticeId()
				.equals(castOther.getPracticeId())))
				&& ((this.getCompleteBy() == castOther.getCompleteBy()) || (this
						.getCompleteBy() != null
						&& castOther.getCompleteBy() != null && this
						.getCompleteBy().equals(castOther.getCompleteBy())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getPracticeId() == null ? 0 : this.getPracticeId()
						.hashCode());
		result = 37
				* result
				+ (getCompleteBy() == null ? 0 : this.getCompleteBy()
						.hashCode());
		return result;
	}

}